Skip to content

[azsdk-cli] Prototype instrumentation for MCP tool calls#11818

Merged
benbp merged 2 commits into
Azure:mainfrom
benbp:benbp/call-tools-handler
Aug 25, 2025
Merged

[azsdk-cli] Prototype instrumentation for MCP tool calls#11818
benbp merged 2 commits into
Azure:mainfrom
benbp:benbp/call-tools-handler

Conversation

@benbp
Copy link
Copy Markdown
Member

@benbp benbp commented Aug 25, 2025

This is a prototype of an approach to add some static instrumentation wrapper methods to the base MCPTool class, and replaces the mcp tool registration logic to call a telemetry wrapper service.

I haven't worked this into CLI mode yet because I want to do some higher level refactoring to simplify GetCommand() and HandleCommand() so we only have to wrap them once at the base.

In the future we will switch to the built-in middleware of the mcp c# sdk, but it is currently in development.

Copilot AI review requested due to automatic review settings August 25, 2025 19:24
@github-actions github-actions Bot added the azsdk-cli Issues related to Azure/azure-sdk-tools::tools/azsdk-cli label Aug 25, 2025

This comment was marked as duplicate.

Copy link
Copy Markdown
Member

@praveenkuttappan praveenkuttappan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this change

@benbp benbp added the Central-EngSys This issue is owned by the Engineering System team. label Aug 25, 2025
@benbp benbp self-assigned this Aug 25, 2025
@benbp benbp moved this from 🤔 Triage to 🔬 Dev in PR in Azure SDK EngSys 🚀🌒🧑‍🚀 Aug 25, 2025
@benbp benbp merged commit 8e79fb3 into Azure:main Aug 25, 2025
14 checks passed
@benbp benbp deleted the benbp/call-tools-handler branch August 25, 2025 20:33
@weshaggard weshaggard moved this from 🔬 Dev in PR to 🎊 Closed in Azure SDK EngSys 🚀🌒🧑‍🚀 Aug 26, 2025
radhgupta pushed a commit to radhgupta/azure-sdk-tools that referenced this pull request Sep 9, 2025
* Demo mcp tool instrumentation

* Improve cancellation token usage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

azsdk-cli Issues related to Azure/azure-sdk-tools::tools/azsdk-cli Central-EngSys This issue is owned by the Engineering System team.

Projects

Development

Successfully merging this pull request may close these issues.

4 participants